
 /**  
 * Project Name:zhonghecrm  
 * File Name:SysUserService.java  
 * Package Name:com.crm.service  
 * Date:2016年10月12日下午5:50:31   
 *  
*/  
  
package com.crm.service;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.crm.model.SysMenu;
import com.crm.model.SysUser;
import com.github.pagehelper.Page;

/**  
 * ClassName:SysUserService <br/>  
 * Function: TODO ADD FUNCTION. <br/>  
 * Reason:   TODO ADD REASON. <br/>  
 * Date:     2016年10月12日 下午5:50:31 <br/>  
 * @author   hanlinxiu  
 * @version    
 * @since    JDK 1.8  
 * @see        
 */
public interface SysUserService extends BaseService<SysUser>{
	
	public void changePassword(String userId, String newPassword);
	
	public SysUser findByAccount(String account);
	
	public List<SysMenu> findMenusByAccount();
	
	public Set<Map<String, Object>> findResourceByAccount();

	List<SysUser> selectByUserId(Page<SysUser> page, SysUser Record);

	public List<SysUser> selectByDepartmentUserId(Page<SysUser> page, SysUser record);
	
	public List<SysUser> selectUserByDutyId(Page<SysUser> page,SysUser record);
	
	public List<String>  selectUsersByDutyIds(List<String> list);
	
	List<SysUser> selectByDuty(SysUser t);
	
	public int updateHeadImage(SysUser t);
	
	public int updateIsOnline(String userId, String isOnline);
	
	//批量重置密码
	public void updatePasswordBatch();
}
  
